package com.lsfb.signln.Statistics.EvectionSearch.SearchResult;

import android.content.Context;

import com.lsfb.signln.R;
import com.zgscwjm.lsfbbasetemplate.adapter.CommonRecycAdapter;
import com.zgscwjm.lsfbbasetemplate.adapter.ViewHolderRecyc;

import java.util.List;

/**
 * Created by Administrator on 2018/3/6 0006.
 */

public class SelfOutStatisticsAdapter extends CommonRecycAdapter<SelfOutStatisticsBean.ListBean> {
    private Context mContext;

    public SelfOutStatisticsAdapter(Context context, List<SelfOutStatisticsBean.ListBean> list, int layoutId) {
        super(context, list, layoutId);
        mContext = context;
    }

    @Override
    public void convert(ViewHolderRecyc holder, SelfOutStatisticsBean.ListBean model) {
        holder.setText(R.id.item_text_starttime, model.getStartTime());
        holder.setText(R.id.item_text_endtime, model.getEndTime());
        holder.setText(R.id.item_text_address, model.getLoc());
        holder.setText(R.id.item_text_days, "共" + String.valueOf(model.getDays()) + "天");
//        holder.setText(R.id.item_text_money,model.getMoney());
        holder.setText(R.id.item_text_money, String.valueOf(Integer.valueOf(model.getCb_money())+Integer.valueOf(model.getZs_money())));
    }
}
